package com.arpa.ntocc.common.domain.dto;

import com.arpa.ntocc.common.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 新闻表DTO
 * </p>
 *
 * @author LEO
 * @since 2019-12-27
 */
@Data
@ApiModel(value="NewsDTO对象", description="新闻表")
public class NewsDTO extends BasicEntity {


    private String code;

    @ApiModelProperty(value = "用户编码code")
    private String userCode;

    @ApiModelProperty(value = "组织机构编码")
    private String branchCode;

    @ApiModelProperty(value = "新闻标题图片地址")
    private String imgUrl;

    @ApiModelProperty(value = "新闻标题")
    private String title;
    @ApiModelProperty(value = "副标题")
    private String subhead;

    @ApiModelProperty(value = "新闻内容")
    private String content;

    @ApiModelProperty(value = "新闻编辑者")
    private String editName;

    @ApiModelProperty(value = "新闻类别：1，最新活动；2，行业动态；3，公司新闻；4，节日安排；5，企业风采")
    private String newsType;

    @ApiModelProperty(value = "是否发布：0，未发布；1，发布")
    private String ifRelease;

    @ApiModelProperty(value = "阅读次数")
    private Integer readNumber;


    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}
